//
//  main.m
//  oc
//
//  Created by lanou on 16/10/24.
//  Copyright (c) 2016年 cn.jhc. All rights reserved.
//

#import <Foundation/Foundation.h>
int (^strLength)(char* str) = ^(char* str){

    int len = 0;
    for(int i = 0;str[i]!='\0';i++){
        len++;
    }
    return len;
};

int (^lengthOfStr)(char string[])= ^(char string[]) {
    
    int i = 0;
    char c = string[i];
    while(c!='\0'){
        i++;
        c = string[i];
    }
    return i;
};
int main(int argc, const char * argv[]) {
    @autoreleasepool {
        char str[100];
        scanf("%s",str);
//        printf("%d",strLength(str));
       printf("%d",lengthOfStr(str)) ;
    }
    return 0;
}
